package com.hnjfzn.mall.domain;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.hnjfzn.common.core.web.domain.BaseEntity;

import java.util.Date;

public class ProductCategory extends BaseEntity {

    @TableId(value = "category_id", type = IdType.ASSIGN_ID) // 主键自动增长
    private Long categoryId; // 商品分类ID

    @TableField("category_name")
    private String categoryName; // 分类名称

    @TableField("parent_category_id")
    private Integer parentCategoryId; // 父分类ID

    @TableField("create_time")
    private Date createTime; // 分类创建时间

    @TableField("update_time")
    private Date updateTime; // 分类更新时间

    @TableField("create_by")
    private String createBy; // 创建人

    @TableField("update_by")
    private String updateBy; // 修改人

    @TableField("remark")
    private String remark; // 备注

    // Getter 和 Setter 方法


    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getParentCategoryId() {
        return parentCategoryId;
    }

    public void setParentCategoryId(Integer parentCategoryId) {
        this.parentCategoryId = parentCategoryId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    // toString 方法（可选）
    @Override
    public String toString() {
        return "ProductCategory{" +
                "categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                ", parentCategoryId=" + parentCategoryId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createBy='" + createBy + '\'' +
                ", updateBy='" + updateBy + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
